Optimal. Leaf size=202 \[ \frac{b^2 e^2 n^2 \text{PolyLog}\left (2,-\frac{e f-d g}{g (d+e x)}\right )}{g (e f-d g)^2}-\frac{b e^2 n \log \left (\frac{e f-d g}{g (d+e x)}+1\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{g (e f-d g)^2}-\frac{b e n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )}{(f+g x) (e f-d g)^2}-\frac{\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{2 g (f+g x)^2}+\frac{b^2 e^2 n^2 \log (f+g x)}{g (e f-d g)^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.38548, antiderivative size = 233, normalized size of antiderivative = 1.15, number of steps used = 9, number of rules used = 9, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.375, Rules used = {2398, 2411, 2347, 2344, 2301, 2317, 2391, 2314, 31} \[ -\frac{b^2 e^2 n^2 \text{PolyLog}\left (2,-\frac{g (d+e x)}{e f-d g}\right )}{g (e f-d g)^2}+\frac{e^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{2 g (e f-d g)^2}-\frac{b e^2 n \log \left (\frac{e (f+g x)}{e f-d g}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{g (e f-d g)^2}-\frac{b e n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )}{(f+g x) (e f-d g)^2}-\frac{\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{2 g (f+g x)^2}+\frac{b^2 e^2 n^2 \log (f+g x)}{g (e f-d g)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2398
Rule 2411
Rule 2347
Rule 2344
Rule 2301
Rule 2317
Rule 2391
Rule 2314
Rule 31
Rubi steps
\begin{align*} \int \frac{\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{(f+g x)^3} \, dx &=-\frac{\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{2 g (f+g x)^2}+\frac{(b e n) \int \frac{a+b \log \left (c (d+e x)^n\right )}{(d+e x) (f+g x)^2} \, dx}{g}\\ &=-\frac{\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{2 g (f+g x)^2}+\frac{(b n) \operatorname{Subst}\left (\int \frac{a+b \log \left (c x^n\right )}{x \left (\frac{e f-d g}{e}+\frac{g x}{e}\right )^2} \, dx,x,d+e x\right )}{g}\\ &=-\frac{\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{2 g (f+g x)^2}-\frac{(b n) \operatorname{Subst}\left (\int \frac{a+b \log \left (c x^n\right )}{\left (\frac{e f-d g}{e}+\frac{g x}{e}\right )^2} \, dx,x,d+e x\right )}{e f-d g}+\frac{(b e n) \operatorname{Subst}\left (\int \frac{a+b \log \left (c x^n\right )}{x \left (\frac{e f-d g}{e}+\frac{g x}{e}\right )} \, dx,x,d+e x\right )}{g (e f-d g)}\\ &=-\frac{b e n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )}{(e f-d g)^2 (f+g x)}-\frac{\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{2 g (f+g x)^2}-\frac{(b e n) \operatorname{Subst}\left (\int \frac{a+b \log \left (c x^n\right )}{\frac{e f-d g}{e}+\frac{g x}{e}} \, dx,x,d+e x\right )}{(e f-d g)^2}+\frac{\left (b e^2 n\right ) \operatorname{Subst}\left (\int \frac{a+b \log \left (c x^n\right )}{x} \, dx,x,d+e x\right )}{g (e f-d g)^2}+\frac{\left (b^2 e n^2\right ) \operatorname{Subst}\left (\int \frac{1}{\frac{e f-d g}{e}+\frac{g x}{e}} \, dx,x,d+e x\right )}{(e f-d g)^2}\\ &=-\frac{b e n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )}{(e f-d g)^2 (f+g x)}+\frac{e^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{2 g (e f-d g)^2}-\frac{\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{2 g (f+g x)^2}+\frac{b^2 e^2 n^2 \log (f+g x)}{g (e f-d g)^2}-\frac{b e^2 n \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac{e (f+g x)}{e f-d g}\right )}{g (e f-d g)^2}+\frac{\left (b^2 e^2 n^2\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{g x}{e f-d g}\right )}{x} \, dx,x,d+e x\right )}{g (e f-d g)^2}\\ &=-\frac{b e n (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )}{(e f-d g)^2 (f+g x)}+\frac{e^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{2 g (e f-d g)^2}-\frac{\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{2 g (f+g x)^2}+\frac{b^2 e^2 n^2 \log (f+g x)}{g (e f-d g)^2}-\frac{b e^2 n \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac{e (f+g x)}{e f-d g}\right )}{g (e f-d g)^2}-\frac{b^2 e^2 n^2 \text{Li}_2\left (-\frac{g (d+e x)}{e f-d g}\right )}{g (e f-d g)^2}\\ \end{align*}
Mathematica [A] time = 0.216715, size = 204, normalized size = 1.01 \[ \frac{\frac{e (f+g x) \left (-2 b^2 e n^2 (f+g x) \text{PolyLog}\left (2,\frac{g (d+e x)}{d g-e f}\right )+2 b n (e f-d g) \left (a+b \log \left (c (d+e x)^n\right )\right )-2 b e n (f+g x) \log \left (\frac{e (f+g x)}{e f-d g}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )+e (f+g x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2-2 b^2 e n^2 (f+g x) (\log (d+e x)-\log (f+g x))\right )}{(e f-d g)^2}-\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{2 g (f+g x)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.759, size = 1473, normalized size = 7.3 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} a b e n{\left (\frac{e \log \left (e x + d\right )}{e^{2} f^{2} g - 2 \, d e f g^{2} + d^{2} g^{3}} - \frac{e \log \left (g x + f\right )}{e^{2} f^{2} g - 2 \, d e f g^{2} + d^{2} g^{3}} + \frac{1}{e f^{2} g - d f g^{2} +{\left (e f g^{2} - d g^{3}\right )} x}\right )} - \frac{1}{2} \, b^{2}{\left (\frac{\log \left ({\left (e x + d\right )}^{n}\right )^{2}}{g^{3} x^{2} + 2 \, f g^{2} x + f^{2} g} - 2 \, \int \frac{e g x \log \left (c\right )^{2} + d g \log \left (c\right )^{2} +{\left (e f n + 2 \, d g \log \left (c\right ) +{\left (e g n + 2 \, e g \log \left (c\right )\right )} x\right )} \log \left ({\left (e x + d\right )}^{n}\right )}{e g^{4} x^{4} + d f^{3} g +{\left (3 \, e f g^{3} + d g^{4}\right )} x^{3} + 3 \,{\left (e f^{2} g^{2} + d f g^{3}\right )} x^{2} +{\left (e f^{3} g + 3 \, d f^{2} g^{2}\right )} x}\,{d x}\right )} - \frac{a b \log \left ({\left (e x + d\right )}^{n} c\right )}{g^{3} x^{2} + 2 \, f g^{2} x + f^{2} g} - \frac{a^{2}}{2 \,{\left (g^{3} x^{2} + 2 \, f g^{2} x + f^{2} g\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{b^{2} \log \left ({\left (e x + d\right )}^{n} c\right )^{2} + 2 \, a b \log \left ({\left (e x + d\right )}^{n} c\right ) + a^{2}}{g^{3} x^{3} + 3 \, f g^{2} x^{2} + 3 \, f^{2} g x + f^{3}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (b \log \left ({\left (e x + d\right )}^{n} c\right ) + a\right )}^{2}}{{\left (g x + f\right )}^{3}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]